using System;
using System.Windows.Forms;
using System.Drawing;
using TestMap;

namespace DrawTools
{
	/// <summary>
	/// Ellipse tool
	/// </summary>
	class ToolEllipse : DrawTools.ToolRectangle
	{
		public ToolEllipse()
		{
            Cursor = new Cursor("Ellipse.cur");
		}

        public override void OnMouseDown(Form1 drawArea, AxMapXLib.CMapXEvents_MouseDownEvent e)
        {
            Point p = new Point((int)e.x, (int)e.y);
            AddNewObject(drawArea, new DrawRectangle(p.X, p.Y, 1, 1));
        }

	}
}
